AddComponentPostInit('pickable',
---@param self component_pickable
function (self)
    ---@class event_data_webbert_mod_pick
    ---@field plant ent

    local old_Pick = self.Pick
    function self:Pick(picker,...)
        local res =  old_Pick ~= nil and {old_Pick(self,picker,...)} or {}
        if res[1] and picker then
            picker:PushEvent('webbert_mod_pick',{ plant = self.inst})
        end
        return unpack(res)
    end
end)


AddComponentPostInit('stewer',
---@param self component_stewer
function (self)
    local old_StartCooking = self.StartCooking
    function self:StartCooking(doer,...)
        if doer and doer:HasTag('player') then
            doer:PushEvent('webbert_mod_cook_preparedfood')
        end
        return old_StartCooking ~= nil and old_StartCooking(self,doer,...) or nil
    end
end)